package org.lwd.datalink.service.impl;

import org.lwd.datalink.domain.media.MediaSourceInfo;
import org.lwd.datalink.domain.media.MediaSourceType;
import org.lwd.datalink.mapper.MediaSourceMapper;
import org.lwd.datalink.service.MediaSourceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Set;

/**
 * @Author: weidong.lin
 */
@Service
public class MediaSourceServiceImpl implements MediaSourceService {

    @Resource
    private MediaSourceMapper mediaSourceMapper;

    @Override
    public MediaSourceInfo getById(Long id) {
        return mediaSourceMapper.getById(id);
    }

    @Override
    public List<MediaSourceInfo> getListByType(Set<MediaSourceType> mediaSourceType) {
        return mediaSourceMapper.getListByType(mediaSourceType);
    }
}
